import request from '@/utils/request'

// 设备订单列表
export function getList (params) {
  return request({
    params,
    url: '/sys/back/wxOrder/findConditionPage'
  })
}

//设备订单详情
export function getDetail (params) {
  return request({
    params,
    url: '/back/getGoodsOrders'
  })
}

//订单列表
export function getOrdersList (params) {
  return request({
    params,
    url: '/back/xsOrders/getOrdersList'
  })
}

//订单详情
export function getOrderInfo (params) {
  return request({
    params,
    url: '/back/xsOrders/getOrderInfo'
  })
}

//结束订单
export function endOrders (params) {
  return request({
    method: 'post',
    params,
    url: '/back/xsOrders/endOrders',
  })
}

//退款(取消订单)
export function cancalOrders (params) {
  return request({
    method: 'post',
    params,
    url: '/back/xsOrders/cancalOrders',
  })
}

//导出订单列表excel
export function exportExcel (params) {
  return request({
    params,
    url: '/back/xsOrders/exportExcel',
  })
}